MButton – Labeled button with an attached captioned panel.


Creation: MButton_New(caption$, text$, x, y, pixelwidth)


caption$ - The text that is displayed on the title bar.

text$ - The text that is displayed on the button.

x – Pixel X coordinate for the top left corner of the button.

y – Pixel Y coordinate for the top left corner of the button.

pixelwidth – The width of the button in pixels.


Functions:

MButton_ClearSelected(index)

Clears the pressed status of the button.


MButton_Delete(index)

Deletes the button.


MButton_Disable(index)

Disables the button.


MButton_Draw(index)

Draws the button to screen.


MButton_Enable(index)

Enables the button.


MButton_GetSelected(index)

Gets whether button is pressed status. 0=no ; 1=yes


MButton_SetCaption(index, caption$)

Sets the caption on the button window.


MButton_SetText(index, text$)

Sets the text on the button.